//
//  main.m
//  CreatePList
//
//  Created by 蒋浩源 on 15/7/27.
//  Copyright (c) 2015年 自学教程. All rights reserved.
//

#import <Foundation/Foundation.h>

int main(int argc, const char * argv[]) {
    @autoreleasepool {
        // insert code here...
        NSLog(@"Hello, World!");
        
        NSString *sensitives = @"法轮功,真善忍大法,反对共产党,倒毛泽东,去你妈的,FUCK,日你妈,操你祖宗,操你娘,操你妈,狗日的,狗娘养的,要死,他妈的,死光光,神经病,你有病,您有病,诅咒,叼死,代办证件,发票代开,办证,中奖,马会,找死,找打,他奶奶的,操你妈的B,打耙鬼,倒邓小平,补习收费,补课收费,取消校讯通,取代校讯通,停用校讯通,天翼,翼校通,倒江泽民,倒胡锦涛,倒温家宝,倒政府,倒共产党,倒共匪,倒北京政府,翻北京政府,翻共党,法轮大法,天灭中共,西藏独立,达赖喇嘛,专政机器,共产王朝,中共暴政,中共恶霸,中共警察,中共政权,中共监狱,灵修团体,修炼之歌,发正念,和平修念,法正人间,大法弟子,天安门受难人,大陆同修,师父法身,大法师傅,法轮大法,五套功法,法轮佛法,开周天秘法,玄音大师,张宏宝尊师,中功弟子,金麒麟网,提法门,台湾中华民国,达赖十四,藏独,疆独,www.tbb2,4006012580";
        
        NSArray *sensitivesArray = [sensitives componentsSeparatedByString:@","];
        
        NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
        NSString *documentsDirectory = [paths objectAtIndex:0];
        NSString *filePath = [documentsDirectory stringByAppendingPathComponent:@"Sensitive.plist"];
        
        BOOL isSuccess = [sensitivesArray writeToFile:filePath atomically:YES];
        
        NSLog(@"isSuccess:%d",isSuccess);

    }
    return 0;
}
